- If you're upgrading from cometchat 1.5. or 1.6
  Be sure to delete you're old cometchat directory FIRST!

- Some people have done it, so I have to say it.... DO NOT upload the "UPLOAD" folder... only upload the files that are INSIDE of the "upload" folder.


//////////////////////////////////////////////////////////////////////////////////////

!!!!!READ THIS FIRST!!!!!!

****IF you're Forums are showing on your websites Root.
   (for example) http://www.your-site.com/
   start at that //ROOT INSTALL// step.

****IF you're Forums are showing on your website in a sub-directory.
    (for example) http://www.your-site.com/forum/
    then start at the //SUB-DIRECTORY INSTALL// step.

////////////////////////////////////////////////////////////////////////////////////



//ROOT INSTALL//

- Upload the CONTENTS of the /upload/ directory to your FORUM ROOT.

  You will have.... 
  http://your-site.com/vbpic.php
and
  http://your-site.com/cometchat/


- Run Install
  http://your-site.com/cometchat/install.php


- When it's finished installing it will give you a code that looks like this.....

<!-- CometChat Footer Code Start -->
<link type="text/css" rel="stylesheet" media="all" href="/cometchat/cometchatcss.php" charset="utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">jqcc=jQuery.noConflict(true);</script>
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- CometChat Footer Code End -->


- Insert that code at the BOTTOM of...
Styles and Templets/ Style Maneger / Edit Templetes / footer



You're DONE! 
*Sroll down to the bottom to create a Cronjob.


////////////////////////////////////////////////////////////////////////////////////////////////



//SUB-DIRECTORY INSTALL//

**You may have a diffrent sub-directory name then /forum/ if that's the case just replace /forum/ with the name of your sub-directory.**

- Upload the CONTENTS of the /upload/ directory to your FORUM Directory.

  You will have.... 
  http://your-site.com/forum/vbpic.php
and
  http://your-site.com/forum/cometchat/


- Run Install
  http://your-site.com/forum/cometchat/install.php


- When it's finished installing it will give you a code that looks like this.....

<!-- CometChat Footer Code Start -->
<link type="text/css" rel="stylesheet" media="all" href="/forum/cometchat/cometchatcss.php" charset="utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">jqcc=jQuery.noConflict(true);</script>
<script type="text/javascript" src="/forum/cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- CometChat Footer Code End -->

**Be sure to check the urls in the footer code match with your urls. (you don't need the full url link).


- Insert that code at the BOTTOM of...
Styles and Templets/ Style Maneger / Edit Templetes / footer


- Open /cometchat/config.php and find at the top....

/* BASE URL */

define('BASE_URL','cometchat/');;


- Change it to look like this...


/* BASE URL */

define('BASE_URL','forum/cometchat/');;

- OR THIS...

/* BASE URL */

define('BASE_URL','/forum/cometchat/');;


- You can change "forum" to whatever the name of your subdirectory is.


- You're DONE!
*Sroll down to the bottom to create a Cronjod.

///////////////////////////////////////////////////////////


//Create a CronJob//

Cometchat will store ALL the conversations in the database... and if you have a large forum or forget about it, it will max out your database!

Here is a "How-To" to set up a ConJob to automatically clear the "conversations".
Your Host's CPanel maybe setup differently or you may not even have access to CronJobs.

- Open notepad and add this..

<!-- Begining of CronJob -->
<?php
require_once("./global.php");
$vbulletin->db->query_write("TRUNCATE " . TABLE_PREFIX . "cometchat");
mail  ("your-email@email.com", "Cron Successful!", "Your CometChat Chat Database Has Been Cleared!");
<!-- End of CronJob -->

*Change your-email@email.com to your email address


- Save it as "cometchat_clean.php" and upload it to your root directory.

- Open CronJobs/CronTab in your Host's Cpanel.

- Enter 
wget http://www.your-site.com/cometchat_clean.php >/dev/null 2>&1

*Change "your-site.com" to your website's URL.

- Set it to run every at least every week.

- Save.

*If you do NOT have access to setup a CronJob, no problem... 
Follow the above steps to create a "cometchat_clean.php" file and upload it, and every week or so type this url into your browser...

http://www.your-site.com/cometchat_clean.php

*Change "your-site.com" to your website's URL.

The result page will be blank but you should get an email letting you know the conversations were cleaned


Enjoy.
Brought to you by Engine (ddl-turkey.net)